home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15873 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: mail2news.demon.co.uk!lorelei.demon.co.uk
  2. From: John Croudy <john@lorelei.demon.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Just Started Doing A BTEC in Computer Studies & Need Help With C++
  5. Followup-To: comp.lang.c++,utexas.class.cs105.c++
  6. Date: Mon, 8 Apr 96 17:43:22 GMT
  7. Organization: home
  8. Message-ID: <9604081743.AA001pk@lorelei.demon.co.uk>
  9. References: <828875639.20834@dixey.demon.co.uk>
  10. X-NNTP-Posting-Host: lorelei.demon.co.uk
  11. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  12. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!lorelei.demon.co.uk
  13.  
  14. On Sun, 07 Apr 1996 11:13:51 GMT, P F J wrote:
  15.  
  16. > I have to develope a MFC CObject which incorparates standard utility
  17. > classes such as CSTRING and CDATE.
  18. > I have no idea what this means & my tutor isn't helping much.
  19.  
  20. It sounds like you've been thrown in at the deep end and left to drown!
  21. If you have no C++ experience, then learning MFC is a nightmare because
  22. you have to have C++ knowledge to understand what it's all about.  I
  23. started learning Windows and MFC and (Visual) C++ all at the same
  24. time...  needless to say I went insane.  I had to stop and learn C++ in
  25. isolation first.  Then I could go back to MFC and understand what it
  26. meant!
  27.  
  28. > I guess that the CObject works a bit like an external sub-routing that
  29.  
  30. A CObject is a little C++ class.  It's what most of the rest of the MFC
  31. classes are derived from.  On it's own it's not much use.  The idea is
  32. to use it as a base class to start deriving your own classes. For example:
  33.  
  34.     class MyClass : public CObject     // Derive a class from CObject
  35.     {
  36.        CString   m_String;             // Use a CString here
  37.        CDate     m_Date;               // Use a CDate here
  38.  
  39.        ... blah ...
  40.     };
  41.  
  42. Of course, you have to fill in all the details and this might not even
  43. be anything like what your tutor wants, but it gives you an idea of
  44. where things might go!
  45.  
  46. > If you know what the hell I've just being talking about, prehaps you
  47. > could tell me!
  48.  
  49. If you don't understand what I just wrote above, then I recommend doing
  50. what I did...  take a few weeks aside to read about C++ and try out
  51. things without the added confusion of Windows and MFC.
  52.  
  53. John
  54. xxxx
  55.